home *** CD-ROM | disk | FTP | other *** search
/ Aminet 49 / Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso / Aminet / util / libs / ttrender.lha / ttrender-2.0 / Developer / source / lib.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-04-06  |  1.8 KB  |  64 lines

  1. #include <ft2build.h>
  2. #include "ttrender.h"
  3.  
  4. /* === DEBUG STUFF === */
  5. /* comment TTR_DEBUG definition to turn debug messages off */
  6.  
  7. //#define TTR_DEBUG 1
  8.  
  9. #ifdef TTR_DEBUG
  10.   #define USELIB_DBG(a) struct Library *##a = Ttb->ttb_##a;
  11.   #define DBG(a) FPrintf(Ttb->debug, a "\n")
  12.   #define DBG1(a,b) FPrintf(Ttb->debug, a "\n",(LONG)b)
  13.   #define DBG2(a,b,c) FPrintf(Ttb->debug, a "\n",(LONG)b,(LONG)c)
  14. #else
  15.   #define USELIB_DBG(a)
  16.   #define DBG(a)
  17.   #define DBG1(a,b)
  18.   #define DBG2(a,b,c)
  19. #endif
  20.  
  21. /* ====== PRIVATE STRUCTURES, DO NOT TOUCH! ====== */
  22.  
  23. struct RenderEnv
  24.   {
  25.     struct RastPort       *re_TargetRPort;
  26.     struct ColorMap       *re_TargetCMap;
  27.     BOOL                   re_Antialias;
  28.   };
  29.  
  30. struct TTRenderBase
  31.   {
  32.     struct Library         ttb_Lib;
  33.     struct Library        *ttb_SysBase;
  34.     struct Library        *ttb_DOSBase;
  35.     struct Library        *ttb_GfxBase;
  36.     struct Library        *ttb_CyberGfxBase;
  37.     struct Library        *ttb_UtilityBase;
  38.     struct TTRenderBase   *ttb_RealTTRenderBase;
  39.     APTR                   ttb_SegList;
  40.     FT_Library             ttb_FTLib;
  41.     FT_Face                ttb_Face;
  42.     struct CachedSize     *ttb_CurrentCache;
  43.     struct MinList         ttb_MemoryCache;       /* list of CachedFont structures */
  44.     ULONG                  ttb_MemCacheSize;      /* valid in real base only */
  45. //    WORD                   ttb_NoSmoothMin;
  46. //    WORD                   ttb_NoSmoothMax;
  47.     ULONG                  ttb_Ascender;          /* recalculated ascender of the current font */
  48.     ULONG                  ttb_Descender;         /* recalculated (positive) descender */
  49.     UWORD                 *ttb_CodePage;
  50.     APTR                   ttb_MemPool;
  51.  
  52.     /* local for every opening */
  53.  
  54.     struct RenderEnv       ttb_RenderEnv;
  55.  
  56.     /* debug only */
  57.  
  58.     #ifdef TTR_DEBUG
  59.     BPTR debug;
  60.     #endif
  61.   };
  62.  
  63.  
  64.